package com.entity;

import com.util.DateUtils;

/**
 * Rykp entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Rykp implements java.io.Serializable {

	// Fields

	private Integer id;
	private Ryzl ryzl;
	private Long kprq;
	private String kpnr;
	private String kpjg;
	private String bz;

	String kprqString;
	public String getKprqString() {
		if(kprq!=null){
			return DateUtils.DateToString(DateUtils.longToDate(kprq));
		}else{
			return "";
		}
	}

	public void setKprqString(String kprqString) {
		this.kprqString = kprqString;
	}
	// Constructors

	/** default constructor */
	public Rykp() {
	}

	/** full constructor */
	public Rykp(Ryzl ryzl, Long kprq, String kpnr, String kpjg, String bz) {
		this.ryzl = ryzl;
		this.kprq = kprq;
		this.kpnr = kpnr;
		this.kpjg = kpjg;
		this.bz = bz;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Ryzl getRyzl() {
		return this.ryzl;
	}

	public void setRyzl(Ryzl ryzl) {
		this.ryzl = ryzl;
	}

	public Long getKprq() {
		return this.kprq;
	}

	public void setKprq(Long kprq) {
		this.kprq = kprq;
	}

	public String getKpnr() {
		return this.kpnr;
	}

	public void setKpnr(String kpnr) {
		this.kpnr = kpnr;
	}

	public String getKpjg() {
		return this.kpjg;
	}

	public void setKpjg(String kpjg) {
		this.kpjg = kpjg;
	}

	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

}